using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ImageAnalystTools._Overlay
{
    /// <summary>
    /// <para>Weighted Sum</para>
    /// <para>Overlays several rasters, multiplying each by their given weight and summing them together.</para>
    /// <para>叠加多个栅格，将每个栅格乘以给定的权重，然后将它们相加。</para>
    /// </summary>    
    [DisplayName("Weighted Sum")]
    public class WeightedSum : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public WeightedSum()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_rasters">
        /// <para>Input rasters</para>
        /// <para><xdoc>
        ///   <para>The weighted sum table allows you to apply different weights to individual input rasters before they are summed together.</para>
        ///   <bulletList>
        ///     <bullet_item>Raster—The raster being weighted.</bullet_item><para/>
        ///     <bullet_item>Field—The field of the raster to use for weighting.</bullet_item><para/>
        ///     <bullet_item>Weight—The weight value by which to multiply the raster. It can be any positive or negative decimal value.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>加权总和表允许您在将单个输入栅格相加之前对各个输入栅格应用不同的权重。</para>
        ///   <bulletList>
        ///     <bullet_item>栅格 - 正在加权的栅格。</bullet_item><para/>
        ///     <bullet_item>字段 - 用于加权的栅格字段。</bullet_item><para/>
        ///     <bullet_item>权重 - 将栅格乘以的权重值。它可以是任何正十进制值或负十进制值。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output weighted raster.</para>
        ///   <para>It will be of floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出加权栅格。</para>
        ///   <para>它将是浮点型的。</para>
        /// </xdoc></para>
        /// </param>
        public WeightedSum(object _in_rasters, object _out_raster)
        {
            this._in_rasters = _in_rasters;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Image Analyst Tools";

        public override string ToolName => "Weighted Sum";

        public override string CallName => "ia.WeightedSum";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "parallelProcessingFactor", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_rasters, _out_raster];

        /// <summary>
        /// <para>Input rasters</para>
        /// <para><xdoc>
        ///   <para>The weighted sum table allows you to apply different weights to individual input rasters before they are summed together.</para>
        ///   <bulletList>
        ///     <bullet_item>Raster—The raster being weighted.</bullet_item><para/>
        ///     <bullet_item>Field—The field of the raster to use for weighting.</bullet_item><para/>
        ///     <bullet_item>Weight—The weight value by which to multiply the raster. It can be any positive or negative decimal value.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>加权总和表允许您在将单个输入栅格相加之前对各个输入栅格应用不同的权重。</para>
        ///   <bulletList>
        ///     <bullet_item>栅格 - 正在加权的栅格。</bullet_item><para/>
        ///     <bullet_item>字段 - 用于加权的栅格字段。</bullet_item><para/>
        ///     <bullet_item>权重 - 将栅格乘以的权重值。它可以是任何正十进制值或负十进制值。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input rasters")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_rasters { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output weighted raster.</para>
        ///   <para>It will be of floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出加权栅格。</para>
        ///   <para>它将是浮点型的。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public WeightedSum SetEnv(int? autoCommit = null, object cellSize = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object parallelProcessingFactor = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, parallelProcessingFactor: parallelProcessingFactor, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}